package org.neuedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzw
 * @since 2024-11-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("drug_info")
public class DrugInfo implements Serializable {

    private static final long serialVersionUID = 1L;



    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 品药编码（国家药品编码本位码共14位“86”，代表在我国境内生产、销售的所有药品；国家药品编码本位码类别码为“9”，代表药品；国家药品编码本位码本体码的前5位为药品企业标识）
     */
    private String drugCode;

    /**
     * 药品名称
     */
    private String drugName;

    /**
     * 品药规格
     */
    private String drugFormat;

    /**
     * 包装单位
     */
    private String drugUnit;

    /**
     * 生产厂家
     */
    private String manufacturer;

    /**
     * 药剂类型
     */
    private String drugDosage;

    /**
     * 药品类型
     */
    private String drugType;

    /**
     * 药品单价
     */
    private BigDecimal drugPrice;

    /**
     * 拼音助记码
     */
    private String mnemonicCode;

    /**
     * 创建时间
     */
    private LocalDate creationDate;
    private Boolean delmark;
    private Long quantity;
    public DrugInfo(Integer id, BigDecimal drugPrice, Long quantity) {
        this.id = id;
        this.drugPrice = drugPrice;
        this.quantity = quantity;
    }
}
